package top.infopub.mgr.bpa.service.impl;

import java.math.BigDecimal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.bpa.dao.OutcaeSureDetailDao;
import top.infopub.model.bpa.OutcaeSureDetail;
import top.infopub.mgr.bpa.service.OutcaeSureDetailService;

@Service
public class OutcaeSureDetailServiceImpl extends GenericServiceImpl<OutcaeSureDetail, String> implements
		OutcaeSureDetailService {

	@Autowired
	private OutcaeSureDetailDao outcaeSureDetailDao;
	
	@Override
	public GenericDao<OutcaeSureDetail, String> getDao() {
		return outcaeSureDetailDao;
	}

    @Override
    public BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId,
                                                         String typeName) {
        return outcaeSureDetailDao.selectAddupAmountBySubNameAndRefId(subName, refId, typeName);
    }

    @Override
    public BigDecimal selectAddupAmountBySubNameAfter(String subName, String refId, String typeName) {
        return outcaeSureDetailDao.selectAddupAmountBySubNameAfter(subName, refId, typeName);
    }

}